﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yqd.Enm;

namespace Yqd.Models
{
    /// <summary>
    /// 工作目标
    /// </summary>
    public class Yqd_Scheme
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int SchemeID { get; set; }

        [DisplayName("任务编号")]
        public long TaskID { get; set; }

        [DisplayName("事项编号（钉办督导编号、协同管理编号")]
        public int ItemID { get; set; }

        [DisplayName("事项类型（钉办督到、协同管理）")]
        public 事项类型 ItemType { get; set; }

        [DisplayName("交办编号")]
        public int AssignID { get; set; }

        [DisplayName("工作目标")]
        [StringLength(500)]
        public string JobTarget { get; set; }

        [DisplayName("工作类型")]
        public 工作类型 JobType { get; set; }

        [DisplayName("审核状态")]
        public 审核状态 CheckStatus { get; set; }

        [DisplayName("退回原因")]
        public string ReturnReason { get; set; }

        [DisplayName("审核时间")]
        public DateTime? CheckTime { get; set; }

        [DisplayName("是否审核完成")]
        public bool IsComplete { get; set; }

        [DisplayName("创建时间")]
        public DateTime Instime { get; set; }

        [DisplayName("创建者")]
        [StringLength(50)]
        public string EmployeeCode { get; set; }

        [DisplayName("创建单位")]
        [StringLength(50)]
        public string UnitCode { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; } = false;
    }
}
